export default (state = {}, action) => {
    switch(action.type) {
        case 'CHANGE_MAP_STATE':
            return Object.assign({}, state, action.data);
        case 'CHANGE_SELECTED_SPOT':
            return Object.assign({}, state, action.data);
        case 'SEARCHED':
            return Object.assign({}, state, action.data);
        case 'CLEAR_SEARCHED':
            return Object.assign({}, state, action.data);
        default:
            return state;
    }
}